package summer_vacation.yangyiqing.m201508;
import java.util.Scanner;

/**
 * Created by Administrator on 2015/8/28 0028.
 */
public class Java_31 {
    public static void main(String[] args){
        System.out.println("请输入a,b的值");
        Scanner s=new Scanner(System.in);
        int a=s.nextInt();
        int b=s.nextInt();
        int c=0;
        if((int)Math.pow(a,2)+(int)Math.pow(b,2)>100){
            c=((int)Math.pow(a,2)+(int)Math.pow(b,2)) / 100;
            System.out.println(c);
        }else{
            System.out.println((int)Math.pow(a,2)+(int)Math.pow(b,2));
        }
    }
}
